package com.cuit.service.impl;

import com.cuit.dao.UserDao;
import com.cuit.doamin.User;
import com.cuit.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("UserService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public int updatePwd(String name, String pwd) {

        return userDao.updatePwd(name, pwd);
    }

    @Override
    public int upload(String name, String resume) {
        return userDao.upload(name, resume);
    }

    @Override
    public int delete(String name) {
        return userDao.delete(name);
    }

    @Override
    public String findResume(String u_name) {
        return userDao.findResume(u_name);
    }

    @Override
    public List<User> findRecruit(String u_name) {
        return userDao.findRecruit(u_name);
    }

    @Override
    public Integer findIdByName(String name) {
        return userDao.findIdByName(name);
    }

    @Override
    public boolean postResume(Integer uid, Integer rid) {
        return userDao.postResume(uid, rid);
    }

}
